-- GENERATED SPELL FOR [Naga Explorer] --


function spell0_1907(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_1907', 589, 1)
end

function spell1_1907(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(6548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1907', 15000, 1)
end

function Sorts_1907(pUnit, Event)
local choix_sorts_1907 = math.random(0, 1)
if choix_sorts_1907 == 0 then
pUnit:RegisterEvent('spell0_1907', 1, 1)
end
if choix_sorts_1907 == 1 then
pUnit:RegisterEvent('spell1_1907', 1, 1)
end
end

function mob1907_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1907', math.random(1500, 3000), 1)
end

function mob1907_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1907_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1907_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1907, 1, 'mob1907_Action')
RegisterUnitEvent(1907, 2, 'mob1907_Leave')
RegisterUnitEvent(1907, 3, 'mob1907_Kill')
RegisterUnitEvent(1907, 4, 'mob1907_Die')
